<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Script-Type" content="text/javascript" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
	<title>::: 기업검색 :::</title>
	<link rel="stylesheet" type="text/css" href="/css/reset.css"/>
	<link rel="stylesheet" type="text/css" href="/css/Company.css"/>
	<link rel="stylesheet" type="text/css" href="/css/style.css"/>
	<link rel="stylesheet" href="/js/jquery-ui/css/jquery.ui.all.css">
	<script type="text/javascript" language="javascript" src="/js/common.js"></script>
	<script type="text/javascript" language="javascript" src="/js/png.js"></script>
	<script type="text/javascript" language="javascript" src="/js/main_menu.js"></script>
	<script type="text/javascript" language="javascript" src="/js/ga.js"></script>
	
	<script type="text/javascript" src="/js/jquery-1.6.2.js"></script>
	<script src="/js/jquery-ui/jquery.ui.core.js"></script>
	<script src="/js/jquery-ui/jquery-ui-1.8.16.custom.js"></script>
	<script src="/js/jquery-ui/jquery.ui.widget.js"></script>
	<script src="/js/jquery-ui/jquery.ui.datepicker.js"></script>
	<script src="/js/jquery-ui/jquery.effects.core.js"></script>
	<script src="/js/jquery-ui/jquery.effects.slide.js"></script>
	<script src="/js/jquery-ui/jquery.ui.dialog.js"></script>
	
	<script type="text/javascript" src="/js/common_jquery.js"></script>
</head>

<body>
<%// 데이터가 로딩되기전 로딩바를 보여줄 컨테이너 %>
<div id="dialog_loading" style="text-align: center;"><img src='/images/common/ico_loading.gif'/></div>

<div id="wrap">
    <dl class="SubContents_Tit">
    	<dd><img src="/images/common/SubCompany_Tit_01.gif" width="370" height="42" alt="기업 / 담당자 리스트" /></dd>
    </dl>
    <dl class="SubContents_Zone">
    	<form id="bizCompanySelect" name="bizCompanySelect" action="/common/bizSearchList.desk" method="post">
    	<input type="hidden" name="agentFlag" value="<%=request.getParameter("agentFlag") %>" />
    	<input type="hidden" id="companySeq" name="companySeq" value="${companySeq }" />
    	<input type="hidden" id="localName" value="${localName }" />
    	<s:set name="agentFlag" value="agentFlag"/>
    	<!-- 회사 선택 -->
        <dd>
        	<h3><img src="/images/common/Sub_CompanyChoice.gif" width="110" height="21" alt="회사선택" /></h3>
            <div class="SubContents_Search">
                <img src="/images/common/Sub_ComName.gif" width="54" height="24" alt="기업명" /> 
                <input type="text" name="searchKeyword" id="searchKeyword" style="width:194px; height:20px;" value="${searchKeyword }"/>
                <s:set name="searchKeyword" value="searchKeyword"/>
                <img src="/images/common/btn_search.gif" id="btn_search" alt="검색하기" width="83" height="24" border="0" style="cursor:pointer;" />
            </div>
            <table cellspacing="0" border="1" summary="기업 검색결과 목록" class="Listboard">
                <caption>기업 검색결과 목록</caption>
                <thead>
                  <tr>
                    <th scope="col" class="line_LeftNo">번호</th>
                    <th scope="col">현지업체</th>
                    <th scope="col">국내업체</th>
                    <th scope="col">사업자번호</th>
                    </tr>
                </thead>
                <tbody>
                <s:if test="%{1 > companyList.size()}">
                 <tr>
                  <td colspan="4">등록된 글이 없습니다.</td>
                 </tr>                                         
                </s:if>

                <s:iterator value="companyList" status="i">
                  <tr>
                    <td class="line_LeftNo"><s:property value="totalCount - #i.count+1" /></td>
                    <td style="text-align:left;text-indent:15px">
                    	<a href="/common/bizCustomerList.desk?companySeq=${companySeq }&searchKeyword=<s:property value="#searchKeyword"/>&localName=${localName }&agentFlag=<s:property value="#agentFlag"/>" class="">
                    		<input type="hidden" name="localName" value="${localName }" />${localName }
                    	</a>
                    </td>
                    <td style="text-align:left;text-indent:15px">${headName }</td>
                    <td style="text-align:left;text-indent:15px">${localBizNo }</td>
                  </tr>
                </s:iterator>
                </tbody>
            </table>
        </dd><!-- 회사 선택 -->
        </form>
        <!-- 담당자 선택 -->
        <dd class="mt30">
        	<h3><img src="/images/common/Sub_ChargerChoice.gif" width="110" height="21" alt="담당자선택" /></h3>
            <table cellspacing="0" border="1" summary="담당자 목록" class="Listboard">
                <caption>담당자 목록</caption>
                <thead>
                  <tr>
                    <th scope="col" class="line_LeftNo" style="width:70px;">선택</th>
                    <th scope="col">담당자</th>
                    </tr>
                </thead>
                <tbody>
                <s:if test="%{1 > customerList.size()}">
                	<tr>
                  		<td colspan="2">담당자가 없습니다.</td>
                 	</tr>                                         
                </s:if>
                <s:iterator value="customerList" status="i">
                  	<tr>
                  		<td class="line_LeftNo"><input type="radio" name="customerSeq" value="${customerSeq},${customerName}" /></td>
                   		<td>${customerName }</td>
                  	</tr>
                </s:iterator>
                </tbody>
            </table>
        </dd><!-- 담당자 선택 -->    
    </dl>
    <ul class="List_Btn_area"><!-- 버튼 부분 -->
    	<li class="left"><img src="/images/common/btn_manage.gif" width="113" height="26" alt="기업정보 관리" id="manageCompanyPopup" style="cursor: pointer;" /></li>
        <li><img src="/images/common/Btn_Choice.gif" alt="선택" id="btn_company_select" width="56" height="26" border="0" style="cursor: pointer;"/></li>
        <li><a href="javascript:self.colse();" title="닫기"><img src="/images/common/Btn_Close.gif" width="57" height="26" alt="닫기" /></a></li>
    </ul><!-- 버튼 부분 --> 
</div>
</body>
</html>
